import request from '@/utils/request'

export default {
  getList: query => {
    return request({
      url: '/erp/color/list',
      method: 'get',
      params: query
    })
  },
  getInfo: colorId =>
    request({
      url: '/erp/color/getInfo',
      method: 'get',
      params: { colorId }
    }),
  delete: ids =>
    request({
      url: '/erp/color/delete',
      method: 'post',
      data: ids
    }),
  update: data =>
    request({
      url: '/erp/color/update',
      method: 'post',
      data: data
    }),
  add: data =>
    request({
      url: '/erp/color/add',
      method: 'post',
      data: data
    })
}
